// Student.java
public class Student {
    private final String name;
    private final int preferredQuantity;
    private final PaperType preferredType;

    public Student(String name, int quantity, PaperType type) {
        if (quantity < 1 || quantity > 4) {
            throw new IllegalArgumentException("Quantity must be 1-4");
        }
        this.name = name;
        this.preferredQuantity = quantity;
        this.preferredType = type;
    }

    public String getName() { return name; }
    public int getPreferredQuantity() { return preferredQuantity; }
    public PaperType getPreferredPaperType() { return preferredType; }
}